package com.ywk.openFeignServer2;

import feign.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @Author zbh
 * @Date 2023/7/21
 */
@SpringBootApplication
@EnableFeignClients
public class OpenFeignServer2MainApplication {

    public static void main(String[] args) {
        SpringApplication.run(OpenFeignServer2MainApplication.class,args);
    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

    @Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }
}
